#ifndef FILEORFOLD_H
#define FILEORFOLD_H

#include <QDialog>
#include<QString>
#include<QGridLayout>
#include<QPushButton>
class FileOrFold : public QDialog
{
    Q_OBJECT
public:
    explicit FileOrFold(QDialog *parent = 0);
    explicit FileOrFold(QString Name="");
    QString getType();
signals:

public slots:
private:
    QString OpenType;
    QPushButton *FileButton;
    QPushButton *FoldButton;

    void init();
private slots:
    void on_FileButton_clicked();
    void on_FoldButton_clicked();
protected:
 void closeEvent(QCloseEvent *e);
};

#endif // FILEORFOLD_H
